<?php

$host = "localhost";
$user = "username";
$password = "password";
$db = "spam";
$con = mysql_connect($host, $user, $password);

if (!$con) {
	die('Could not connect: ' . mysql_error());
}

?>